package com.iran;

import com.google.common.primitives.Ints;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.Observable;

import static java.util.stream.Collectors.toList;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        //System.out.println( "Hello World!" );

        int[] arr = {11,22,3,53,32,51,7,9};

        List<Integer> integers = Ints.asList(arr);
        Integer[] objects = (Integer[])integers.stream().sorted().collect(toList()).toArray();
        

    }
}
